import json

data = '''
{"name": "Bill", "info": {"sex": "male", "age": 29, "birth": "19900506"}}
'''
data2 = "{'UserID': 1234567890}"
fs = eval(data2)
#将json字符串转换为字典
datadict = json.loads(data)
print(datadict)
print(datadict["name"])
print(type(datadict))
print(fs)
print(type(fs))
print(fs["UserID"])